package com.bd.scm.domain.dto.standardReports;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yufc
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PersonalCardRecordDto extends BaseRowModel {
    private Long userSerial;

    @ExcelProperty(value= {"工号"},index=0)
    private String userNo;

    @ExcelProperty(value= {"姓名"},index=0)
    private String userName;

    private Long deptId;

    @ExcelProperty(value= {"科室"},index=0)
    private String deptName;

    @ExcelProperty(value= {"卡号"},index=0)
    private String cardNo;

    @ExcelProperty(value= {"工时制"},index=0)
    private String cardManhour;

    @ExcelProperty(value= {"所属公司"},index=0)
    private String company;

    @ExcelProperty(value= {"员工类型"},index=0)
    private String userType;

    @ExcelProperty(value= {"工作状态"},index=0)
    private String userStatus;

    private Integer jlId;

    @ExcelProperty(value= {"打卡时间"},index=0)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date swipeTime;

    private Integer deviceId;

    @ExcelProperty(value= {"考勤机编号"},index=0)
    private String deviceName;

    @ExcelProperty(value= {"GPS地理位置"},index=0)
    private String gps;

    @ExcelProperty(value= {"打卡类型"},index=0)
    private String swipeType;
}